#include"NamedPipe.hpp"

int main()
{
    NamedPipe named_pipe(fifo_name);
    named_pipe.Create();
    named_pipe.OpenForRead();
    std::string message;
    while(1)
    {
        bool ret = named_pipe.Read(&message);
        if(!ret)
        {
            break;
        }
        std::cout << "client say# " << message << std::endl;
    }
    named_pipe.Close();
    named_pipe.Remove();

    return 0;
}